package com.gaojunxiang.service;

import com.gaojunxiang.domain.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
      //增
      public boolean save(User user);
      //删根据id
      public boolean delete(Integer id);
      //改
      public boolean update(User user);
      //查根据id
      public User findById(Integer id);
      //查根据用户名和密码
      public User login(String username,String password);
      //查询所有根据分页
      public PageInfo<User> findAll(int currentPage, int pageSize);
}
